package thread.lock;

import thread.ThreadUtils;

public class AtomicTest {
    public static  int COUNT = 0;

    public static void main(String[] args) {
        for (int i = 0; i < 500; i++) {
            new Thread(()->{
                ThreadUtils.sleep(50);
                COUNT++;
            }).start();
        }
        ThreadUtils.sleep(3000);
        System.out.println(COUNT);
    }
}
